from django.conf.urls.defaults import *

from discography.models import Publication, Publisher, Track

info_dict_base = {
    'queryset': Publication.objects.all(),
    'paginate_by': 40,
    'allow_empty': True,
}



urlpatterns = patterns('',
    # Example:
    # (r'^bryanlewissaunders/', include('bryanlewissaunders.foo.urls')),

    # Uncomment this for admin:
    (r'^$', 'discography.views.publications_listAll', info_dict_base),
    (r'^(?P<year>\d{4})/$', 'discography.views.publications_listByYear', info_dict_base, 'year_gallery'),
    (r'^(?P<slug>.+)/$', 'discography.views.publication_single', ),
)
